package com.shangcheng.dubbo.exception;

import lombok.Data;

/**
 * 自定义异常类
 */
@Data
public class BusinessException extends RuntimeException {

//    private ErrorResult errorResult;
//
//    public BusinessException(ErrorResult errorResult) {
//        super(errorResult.getErrMessage());
//        this.errorResult = errorResult;
//    }

    /**
     * Constructs a new runtime exception with the specified detail message.
     * The cause is not initialized, and may subsequently be initialized by a
     * call to {@link #initCause}.
     *
     * @param message the detail message. The detail message is saved for
     *                later retrieval by the {@link #getMessage()} method.
     */
    public BusinessException(String message) {
        super(message);
    }
}